package com.alibaba.ai.controller;

import com.alibaba.ai.service.ClinchService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 王振东
 */
@Controller
public class ClinchController {
    @Resource
    private ClinchService clinchService;
    @ResponseBody
    @RequestMapping("/")
    //小区成交房源
    public List<JSONObject> Clinch(){
        List<JSONObject> list=clinchService.getClinch();
        return list;
    }
}
